package com.platform.article.api;

import com.platform.article.dto.ArticleDTO;
import com.platform.article.vo.ArticleInfoVO;
import com.platform.common.entity.PageResult;
import org.springframework.web.bind.annotation.*;

/**
 * @author shuc
 */

@RequestMapping("/internal/article")
public interface ArticleApi {
    String SERVICE_NAME = "article-service";

    @PostMapping("/audit")
    Boolean audit(@RequestParam("id") String id);

    @GetMapping("/page")
    PageResult<ArticleInfoVO> page(@RequestParam("page") Integer page,
                                   @RequestParam("size") Integer size);

    @PostMapping("/update")
    Boolean updateById(@RequestBody ArticleDTO articleDTO);
}
